package com.hurong.business;

import com.hurong.services.SystemRoleClient;
import com.hurong.services.SystemUserClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by hengxing on 2017/9/12.
 */
@RestController
@RequestMapping("/api")
public class PlatBusDeal {

    @Autowired
    private SystemUserClient  systemUserClient;

    @Autowired
    private SystemRoleClient systemRoleClient;

    @RequestMapping("/test")
    @ResponseBody
    public  Object  httpDemo(){
        return systemUserClient.queryUserList();
    }

    @RequestMapping("/test1")
    @ResponseBody
    public  Object  httpDemo1(){
        return "i am hesion";
    }


    @RequestMapping("/test11")
    @ResponseBody
    public  Object  httpRole(){
        return systemRoleClient.queryUserList();
    }

}
